Skip to content

Add Hangar support for platform publishing - #1

Merged
srnyx merged 3 commits into
masterfrom
hangar-publishing
Jul 11, 2026
Merged

Add Hangar support for platform publishing#1
srnyx merged 3 commits into
masterfrom
hangar-publishing

Conversation

@srnyx

@srnyx srnyx commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Still need to resolve 2 TODOs

Once Mod Publish Plugin has Hangar support, Hangar Publish Plugin won't be used anymore

Still need to resolve 2 TODOs

Once MPP has Hangar support, Hangar Publish Plugin won't be used anymore
@srnyx srnyx added the enhancement New feature or request label Jul 11, 2026
@srnyx
srnyx requested a review from Copilot July 11, 2026 23:21
@srnyx
srnyx marked this pull request as ready for review July 11, 2026 23:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds optional Hangar publishing support alongside the existing Mod Publish–based publishing (GitHub/Modrinth/CurseForge), including a shared release-channel mapping and Hangar-specific configuration hooks.

Changes:

  • Add Hangar Publish Plugin integration to setupPublishingPlatforms, including changelog, channel, and dependency wiring.
  • Introduce ReleaseChannel to map a single release classification to both Mod Publish Plugin and Hangar.
  • Move PluginPlatform into the enums package and extend PublishingPlatformConfig with a Hangar action/dependency DSL.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/main/kotlin/xyz/srnyx/gradlegalaxy/utility/Setups.kt Adds Hangar publishing configuration and refactors shared publishing metadata (release channel, primary file, changelog).
src/main/kotlin/xyz/srnyx/gradlegalaxy/utility/Scripts.kt Adds Hangar plugin detection and a helper to fetch Hangar-supported platform versions.
src/main/kotlin/xyz/srnyx/gradlegalaxy/enums/ReleaseChannel.kt Adds a shared release-channel enum mapping to Mod Publish Plugin and Hangar.
src/main/kotlin/xyz/srnyx/gradlegalaxy/enums/PluginPlatform.kt Moves the PluginPlatform enum to enums and adds HANGAR.
src/main/kotlin/xyz/srnyx/gradlegalaxy/data/config/publishing/PublishingPlatformConfig.kt Adds Hangar configuration action + dependency DSL to publishing config.
build.gradle.kts Adds compileOnly dependency on the Hangar Publish Plugin Gradle plugin.
Comments suppressed due to low confidence (1)

src/main/kotlin/xyz/srnyx/gradlegalaxy/enums/PluginPlatform.kt:1

  • Changing PluginPlatform’s package from xyz.srnyx.gradlegalaxy.data.platforms to xyz.srnyx.gradlegalaxy.enums is a source-breaking change for Gradle Kotlin DSL users who import the old FQCN. Consider keeping backward compatibility via a deprecated typealias/forwarder in the old package (or avoid the package move until a major version).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/kotlin/xyz/srnyx/gradlegalaxy/utility/Scripts.kt
Comment thread src/main/kotlin/xyz/srnyx/gradlegalaxy/utility/Setups.kt
Comment thread src/main/kotlin/xyz/srnyx/gradlegalaxy/utility/Setups.kt
@srnyx
srnyx merged commit ac4875a into master Jul 11, 2026
2 checks passed
@srnyx
srnyx deleted the hangar-publishing branch July 11, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants